package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;
import com.fz.us.admin.company.entity.User;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by dzw on 2017/12/11.
 * 加班申请
 */
@Entity
@Table(name="ec_overTime")
public class OverTime extends BaseFlowEntity {
    private static final long serialVersionUID = -4125462197592240984L;

    /**
     * 加班人员
     */
    private User overTimeUser;
    /**
     * 加班开始日期
     */
    private Date startDate;
    /**
     * 加班结束日期
     */
    private Date endDate;
    /**
     * 加班事由
     */
    private String reason;
    /**
     * 加班开始时间
     */
    private Date startTime;
    /**
     * 加班结束时间
     */
    private Date endTime;
    /**
     * 是否完成加班 0未完成 1已完成
     */
    private int isFinished;
    /**
     * 是否完成 是 否
     */
    private String isComplete;

    @ManyToOne(fetch = FetchType.LAZY)
    public User getOverTimeUser() {
        return overTimeUser;
    }

    public void setOverTimeUser(User overTimeUser) {
        this.overTimeUser = overTimeUser;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getIsFinished() {
        return isFinished;
    }

    public void setIsFinished(int isFinished) {
        this.isFinished = isFinished;
    }

    public String getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(String isComplete) {
        this.isComplete = isComplete;
    }
}
